package com.list.data.structure;

import com.hp.hpl.jena.rdf.model.Property;
import com.hp.hpl.jena.rdf.model.Resource;

public class TripleWeights{
	private Resource domain;
    private Property property;
    private Resource range;
    private double weight;
    private boolean direction;

    public TripleWeights(Resource domain, Property property, Resource range, double weight, boolean direction){
        this.domain = domain;
        this.property = property;
        this.range = range;
        this.weight = weight;
        this.direction = direction;
    }

    public boolean isDirection() {
		return direction;
	}

	public void setDirection(boolean direction) {
		this.direction = direction;
	}

	public void setSubject(Resource subject){
        this.domain = subject;
    }
    public void setProperty(Property property){
        this.property = property;
    }
     public void setObject(Resource object){ 
        this.range = domain;
    }
     public void setWeight(double weight){
         this.weight = weight;
     }

     public Resource getDomain(){
         return this.domain;
     }

     public Property getProperty(){
         return this.property;
     }

     public Resource getRange(){
         return this.range;
     }
     public double getWeight(){
         return this.weight;
     }

    @Override
     public String toString(){
         String s = new String();
         
         s = s+this.domain +"->"+ this.property +" "+ this.range +"->"+ this.weight;

         return s;
     }
	
}
